<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = ["html","css","javascript"];
        console.log(arr.length);
        // length-1
        // 获取数组最后面的数据
        console.log(arr[arr.length-1]);
    </script>
</body>
</html>